<?php

	require_once("TodaysDateAndTime.php");

class PageView
{
	
	/**
	 * @param $title, string.
	 * @param $$stylesheetURL, string.
	 * @param $body, string.
	 * 
	 * @return string
	 */
	public function HtmlPage($title = "", $stylesheetURL, $body)
	{   
		$todaysDateAndTimeSwe = new TodaysDateAndTime();
		$todaysDateAndTime = $todaysDateAndTimeSwe->GetTodaysDate();

		return ' 
		<html xmlns="http://www.w3.org/1999/xhtml" >
			<head>
				<title> '.$title.' </title>
				<link rel="StyleSheet" href="' . $stylesheetURL . '" type="text/css" />
				<meta http-equiv="content-type" content="text/html; charset=utf-8" />
			</head>
			<body>
				'. $body .'
				<p>'. $todaysDateAndTime .'</p>
			</body>
		</html>';
	}	
}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	